<template>
  <ContentWrap>
    <el-descriptions :column="2">
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="牵线编码" />
        </template>
        {{ data.no }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="红娘" />
        </template>
        {{ data.matchmakerName }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="手机号" />
        </template>
        {{ data.mobile }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="男方" />
        </template>
        {{ data.manName }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="女方" />
        </template>
        {{ data.womanName }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="牵线时间" />
        </template>
        {{ formatDate(data.createTime) }}
      </el-descriptions-item>
      <el-descriptions-item>
        <template #label>
          <descriptions-item-label label="牵线状态" />
        </template>
        <dict-tag :type="DICT_TYPE.STRINGING_STATUS" :value="data.stringingStatus" />
      </el-descriptions-item>
    </el-descriptions>
  </ContentWrap>
</template>
<script setup lang="ts">
import { formatDate } from '@/utils/formatTime'
import { DICT_TYPE } from '@/utils/dict'

const { data } = defineProps<{ data }>()
</script>
<style scoped lang="scss">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
